<table style="width: 100%;" cellpadding="4" cellspacing="8">
<tr>
    <td class="border2">
        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{language text="poll_vote"}</td>
        </tr>
        </table>

        <div style="padding-left:50px;font-size:10pt;" class="color">
        {if $bError1}
{if $aItem}
<form method="post" action="{url link='public.poll.vote' id=$aItem.id}">
<table style="width:100%;"><tr><td style="font-size:8pt;text-align:left;" class="color">
<div style="padding-left:10px;"><br/><div style="font-size:8pt;font-weight:bold;" class="color">
{if $bAdmin}<div><a class="link_action" onclick="return confirm('{language text="do_you_want_delete_this_item"}');" href="{url link='public.poll' delete=$aItem.id}">[ {language text="delete"} ]</a></div><br />{/if}
 <div style="font-size:7pt;font-weight:normal;"></div>
<a href="{url link='public.user' name=$aItem.user}">
    {Account::Avatar sUser=$aItem.user iSize=60 class="pic1" onmouseover="showInfo5('`$aItem.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
</a>
<br/>
{$aItem.poll}</div>
{if $aItem.answer}
    <div style="padding-left:10px;font-size:8pt;" class="color"><br/>
    {language text="you_have_already_voted_on_this_poll"} <br /><br /><b>{language text="your_answer"}:</b><br /> {$aItem.answer}<br /></div>
{else}
<div style="padding-left:10px;font-size:8pt;" class="color"><br/>
    {if $aItem.o1 != ''}
        <div style="font-size:7pt; padding-bottom:6px;" class="color">
        <label><input type="radio" name="answer" class="pollinput" value="1" style="border:0px;vertical-align:middle;" />
        {$aItem.o1}</label>
        </div>
    {/if}
    {if $aItem.o2 != ''}
        <div style="font-size:7pt; padding-bottom:6px;" class="color">
        <label><input type="radio" name="answer" class="pollinput" value="2" style="border:0px;vertical-align:middle;" />
        {$aItem.o2}</label>
        </div>
    {/if}
    {if $aItem.o3 != ''}
        <div style="font-size:7pt; padding-bottom:6px;" class="color">
        <label><input type="radio" name="answer" class="pollinput" value="3" style="border:0px;vertical-align:middle;" />
        {$aItem.o3}</label>
        </div>
    {/if}
    {if $aItem.o4 != ''}
        <div style="font-size:7pt; padding-bottom:6px;" class="color">
        <label><input type="radio" name="answer" class="pollinput" value="4" style="border:0px;vertical-align:middle;" />
        {$aItem.o4}</label>
        </div>
    {/if}
</div>
            {if !$aItem.answer}
                        <div style="padding:5px;text-align:center;">
                            <input type="submit" value=" {language text="vote"} " />
                        </div>
            {/if}
{/if}
</div>
</td>
</tr>
</table>
 </form>        
 {else}
            {language text="please_specify_your_answer"}
            {/if}
        {else}
            {if $bError}
                {language text="you_can_t_vote_in_this_poll"}
            {else}
                {language text="thanks_for_voting_on_this_poll"}
                <br /><br />
                {language text="to_view_the_results_for_this_poll"} <a class="link_action" href="{url link='public.poll.view' id=$iPollId}">[ {language text="go_here"} ]</a>.
            {/if}
        {/if}
        </div>
        <br/><br/>
    </td>
</tr>
</table>